import sys, os, glob
defs     = ['HAVE_INTTYPES_H','_REENTRANT', 'DEBUG', 'DEBUGMEM']
includes = ['.', '../shared', '../common', '../../includes', 'gen-cpp', '../../includes/thrift']
cflags = '-std=c++0x -ggdb -pthread -Wall -Werror'
name = 'libhadoopops.a'
    
files = glob.glob("*.cc") 
files.append('./gen-cpp/Hbase.cc')
files.append('./gen-cpp/Hbase_types.cc')
files.append('./gen-cpp/Hbase_constants.cc')
files.append('./gen-cpp/ThriftHadoopFileSystem.cpp')
files.append('./gen-cpp/hadoopfs_constants.cpp')
files.append('./gen-cpp/hadoopfs_types.cpp')

env = Environment(CCFLAGS=cflags, CPPDEFINES=defs, CPPPATH=includes)
bin = env.StaticLibrary(name, files)

install_dir = '../../target/libs'
env.Install(install_dir, bin)
env.Alias('install', install_dir)
